package ua.yandex.skipass;

import java.util.Calendar;

/**
 *
 * @author Brothers
 */
public class Enums {

    enum Week {

        Hld, Bdn, None;

        boolean takeDayConditions(int dayOfWeek) {
            if (this == Hld) {
                return dayOfWeek == Calendar.SATURDAY
                        || dayOfWeek == Calendar.SUNDAY;
            } else if (this == Bdn) {
                return dayOfWeek != Calendar.SATURDAY
                        && dayOfWeek != Calendar.SUNDAY;
            }
            return true;

        }
    }

    enum PassType {

        Work, Season;
    }

    enum LiftEnum {

        Ten(10), Twenty(20), Fifty(50), Hundred(100);
        private final int number;

        LiftEnum(int i) {
            this.number = i;
        }

        public int getEnum() {
            return this.number;
        }
    }

    enum SeasonEnum {

        Ninty(90),
        Twenty(20),
        Ten(10),
        Five(5),
        Three(3),
        Two(2),
        One(1);
        private final int number;

        SeasonEnum(int i) {
            this.number = i;
        }

        public int getEnum() {
            return this.number;
        }
    }

    enum TimeEnum {

        First(9, 13), Second(13, 17);
        private final int down;
        private final int up;

        TimeEnum(int i, int j) {
            this.down = i;
            this.up = j;
        }

        public int getDownTime() {
            return this.down;
        }

        public int getUpTime() {
            return this.up;
        }
    }
}
